package com.wnx.job.modules.pms.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.wnx.job.common.api.PageResult;
import com.wnx.job.common.api.QueryPageBean;
import com.wnx.job.modules.pms.dto.EmailParam;
import com.wnx.job.modules.pms.model.PmsEmail;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangnaixing
 * @since 2021-12-17
 */
public interface PmsEmailService extends IService<PmsEmail> {

    /**
     * 获取发给这个学生的邮件
     * @param queryPageBean
     * @return
     */
    PageResult<EmailParam> getStudentEmail(QueryPageBean queryPageBean);

    /**
     * 发送邮件
     * @param mail
     */
    void  sendMail(PmsEmail mail);

    /**
     * 查看公司邮件信息
     * @param queryPageBean
     * @return
     */
    PageResult<EmailParam> getCompanyEmail(QueryPageBean queryPageBean);
}
